<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;
//<---------------章子豪------------------------------------------------------------------------------>
// 前台首页
Route::get('/','index/Web/index');
// 前台登陆页面
Route::get('/webLogin', 'index/Web/login');

//曾兴华qq登录
Route::get('/mylogin','index/web/mylogin');

// 前台执行登陆
Route::post('/webDoLogin', 'index/Web/doLogin');

// 前台注册页
Route::get('/webregister', 'index/Web/register');
// 前台注册验证码
Route::get('/sendCode/:tel', 'index/Web/sendCode');


// 执行前台注册
Route::post('/webDoRegister', 'index/Web/doRegister');

// 前台注销
Route::get('/cancellation', 'index/Web/cancellation');


// 前台用户路由(后台展示)
Route::get('/webUser', 'admin/WebUser/index');
// 添加用户
Route::get('/webUser/create', 'admin/WebUser/create');
// 执行添加
Route::post('/webUserSave', 'admin/WebUser/save');
// 用户详情
Route::get('/webUserOne/:id','admin/WebUser/read');
// 改变用户状态
Route::get('/ajaxSta', 'admin/WebUser/ajaxSta');









// 前台个人中心
Route::get('/Ucenter', 'index/Ucenter/index');

// 个人资料页面
Route::get('/UcenterInfo', 'index/Ucenter/UcenterInfo');
//修改自交提交处理
Route::post('/save_info','index/Ucenter/edit');
//我的订单页面
Route::get('/myorder', 'index/Ucenter/myorder');


// 前台选择班级
Route::get('/changeclass', 'index/Ustudy/changeclass');

// 前台学习中心
Route::get('/Ustudy/:id', 'index/Ustudy/index');




// 后台笔记列表
Route::get('/adminNotes', 'admin/Notes/index');
// 后台笔记删除
Route::post('/adminDelNotes', 'admin/Notes/adminDelNotes');


// 前台笔记
Route::get('/webNotes/:id', 'index/Notes/read');
// 前台ajax选择笔记
Route::post('/ajaxChange', 'index/Notes/ajaxChange');


// 前台笔记修改
Route::rule('/editNotes', 'index/Notes/update');

// 前台笔记删除
Route::rule('/delNotes', 'index/Notes/delete');

// 前台笔记添加
Route::rule('/addNoteAjax','index/Notes/create');


// 前台视频页笔记添加
Route::post('/addWebNotes', 'index/Lesson/ajaxSave');

// 前台视频页笔记修改
Route::post('/ajaxUpdate', 'index/Lesson/ajaxUpdate');

// 前台视频页笔记删除
Route::post('/ajaxDelete', 'index/Lesson/ajaxDelete');







// 选择课程笔记
Route::rule('/classNote', 'index/Notes/classNote');

// 前台课程视频播放页
Route::rule('/classVideo/:id', 'index/Lesson/classVideo');







// 前台资源路由
Route::get('/resources/:id', 'index/Resources/index');

// 后台资源
Route::resource('/adminResources', 'admin/Resources');



//课程列表页
Route::rule('/show_course/:id','index/Web/show_course');
// mob课程列表页
Route::rule('/md_show_course/:id', 'index/Web/md_show_course');



//课程详情页
Route::rule('/detail_course/:id','index/Web/detail_course');

// 确认购买
Route::rule('/payfor/:id', 'index/BuyMyClass/payfor');

// 执行购买
Route::rule('/doPay/:id', 'index/BuyMyClass/doPay');

// 后台订单管理页
Route::rule('/adminOrder', 'admin/adminOrder/index');



// 加入收藏
Route::rule('/iLike/:id', 'index/BuyMyClass/iLike');

// 取消收藏
Route::rule('/iDis/:id', 'index/BuyMyClass/iDis');


// 我的收藏页
Route::rule('/myLikes', 'index/BuyMyClass/myLikes');



// 未定义路由
Route::miss('index/Miss/miss');







//<-周晓梅------------------------------------------------------------------------------------------------->
//进入后台登录页的路由
Route::get('/admin', 'admin/Index/index');
//登录验证
Route::post('/admin/login', 'admin/Index/logindo');
//进入主页
Route::get('/admin/Index', 'admin/Main/index');
//登出
Route::get('/admin/out', 'admin/Index/logout');

//用户模块
//后台用户列表 User/index
Route::get('/admin/User','admin/User/index');
//后台用户查询
Route::post('/admin/searchUser', 'admin/WebUser/searchUser');

//添加用户 User/add
Route::get('/admin/Uadd','admin/User/add');
//执行添加用户 User/doadd
Route::post('/admin/dUadd','admin/User/doadd');
//某用户的角色列表
Route::rule('/rolelist/:id/:name','admin/User/rolelist');
//修改某用户的角色
Route::post('/admin/dRole','admin/User/dorole');
//删除某个用户
Route::rule('/delUser/:id','admin/User/delete');


//周晓梅角色模块
//列表角色 Role/index
Route::get('/admin/Role','admin/Role/index');
//添加角色 Role/add
Route::get('/admin/Radd','admin/Role/add');
//执行添加角色 Role/doadd
Route::post('/admin/dRadd','admin/Role/doadd');
//某角色的权限列表
Route::rule('/nodelist/:id/:name','admin/Role/nodelist');
//修改某角色的权限
Route::rule('/donode/','admin/Role/donode');
//删除某个角色
Route::rule('/delRole/:id','admin/Role/delete');


//权限列表 Node/index
Route::get('/admin/Node','admin/Node/index');
//添加权限 Node/add
Route::get('/admin/Nadd','admin/Node/add');
//执行添加权限 User/doadd
Route::post('/admin/dNadd','admin/Node/doadd');


//删除某个权限
Route::rule('/delNode/:id','admin/Node/delete');

//课程分类模块
//看课程分类表
Route::get('/Cat/','admin/Category/index');
//添加分类表
Route::rule('/addCat/:id/:ppath','admin/Category/cat_add');
//执行添加
Route::rule('/doCat/','admin/Category/doadd');
//删除分类
Route::get('/catedel/:id','admin/Category/delete_cate');
//更改分类的状态 显示隐藏
Route::get('/cg_display/:id/:sta','admin/Category/change_status');

//看课程列表
Route::get('/Course/','admin/Course/index');
//添加课程页面
Route::post('/sanji/','admin/Course/sanji');
Route::get('/addCourse/','admin/Course/course_add');
//执行添加课程
Route::post('/do_course/','admin/Course/do_course');
//更改某课程状态
Route::get('/dis/:id/:sta','admin/Course/course_dis');
//删除某课程
Route::get('/del_course/:id','admin/Course/del_course');
//删除某课程的某图片
Route::get('/del_picture/:id','admin/Course/del_picture');
//更改某图片的状态
Route::get('/cps/:id/:cover','admin/Course/change_pic_status');


//添加单元页面
Route::get('/uniteadd/:id','admin/Course/unite_add');
//执行添加图片
Route::post('/admin/picture/','admin/Course/picture_do');
//执行添加单元
Route::post('/unite_do/','admin/Course/unite_do');
//删除单元
Route::get('/sc_unite/:id','admin/Course/shanchu_unite');

//查看单元//图片
Route::rule('/see_unite/:courseid','admin/Course/see_unite');
//添加单元class的页面
Route::get('/add_class/:id','admin/Course/add_class');
//执行添加class
Route::post('/do_class/','admin/Course/do_class');
//查看某单元的课
Route::rule('/see_class/:id','admin/Course/see_class');

///查看所有疑问
Route::get('/allquestion/','admin/Course/allquestion');
//回复某疑问
Route::rule('/reply_que/:id','admin/Course/reply_que');
//执行回复
Route::post('/reply_do/','admin/Course/reply_do');
//执行回复
Route::get('/reply_see/:id','admin/Course/reply_see');

// Route::rule('User/:id','admin/User/rolelist');
// Route::delete('User/:id','admin/User/delete');



//周晓梅课程表使用


//学习中心
Route::get('/study_center/:cid','index/Course/index');
Route::post('/c_class/','index/Course/c_class');
// 答疑
Route::get('/question/:cid','index/Question/index');

//加载我要提问页面
Route::get('/myquestion/:courseid','index/Question/write_question');
//处理提问的提交
Route::post('/doquestion/:courseid','index/Question/do_question');
//搜索问题
Route::post('/search_que/','index/Question/search_que');


//首页搜索
Route::post('/search_course/','index/Web/search_course');
//首页的小分类
Route::post('/xiao_cate/','index/Web/xiao_cate');
//点击学生名字 跳转学生主页
Route::get('/person/:id','index/Question/person');


//请求免费课程信息接口路由
Route::get('/mianfeikecheng/:id/:limit','others/Freecourse/free');

//<---------------------------------------------------------------------------------->
// 曾兴华以下为前端路由开启
//登录
Route::get('le','index/index/login');
//提交登录
Route::post('sublog','index/index/dologin');
//注册页面
Route::get('rg','index/index/reg');
//请求注册
Route::post('dor','index/index/doreg');
//进入班级
Route::get('class','index/vip/vipClass');
//退出登录
Route::get('goo','index/index/goout');
//提问页面

Route::get('qtn','index/vip/discusKeyTip');
//提问和讨论
Route::get('maketip','index/vip/makeTip');
//讨论详情页
Route::get('tipdetail','index/vip/tipdetail');
//回复插入数据表
Route::post('contentre','index/vip/contentreply');
//发表主题
Route::post('newtip','index/vip/newkeytip');



//互动模块
//进入找同桌
Route::get('classmate','index/Classmate/findclassmate');
//进入条件选择
Route::get('selecttip','index/Classmate/selecttip');
//操作选择条件
Route::post('doselecttip','index/Classmate/doselecttip');
//同桌管理没有同桌
Route::get('nomate','index/classmate/nomate');
//邀请同桌
Route::post('invent','index/classmate/invent');
//解除同桌
Route::get('canclemate','index/classmate/canclemate');
//记录同桌互动内容
Route::post('matechat','index/classmate/matechat');
//同意同桌邀请
Route::get('passmate','index/classmate/passmate');
//拒绝同桌邀请
Route::get('refusemate','index/classmate/refusemate');
//解除同桌关系
Route::get('overmate','index/classmate/overmate');
//to同桌消息管理
Route::get('messagemate','index/classmate/messagemate');
//to同桌消息管理
Route::post('ajaxmessage','index/classmate/ajaxmessage');
//手机端
Route::get('/m','index/mindex/index');
//手机端个人中心
Route::get('/mobile_per/','index/Ucenter/mobile_person');
//微信处理信息
Route::get('/wechat','index/mindex/wechat');

//后台论坛管理
Route::get('discus','admin/Discus/index');
//删除发帖
Route::get('delkeytip','admin/discus/del');
//同桌管理
Route::get('matecon','admin/Mate/index');
//禁用同桌
Route::post('forbid','admin/Mate/forbid');

//接口路由
Route::get('apisel/:sel','index/api/checksel');
//接口页面
Route::get('apiview','index/api/index');
//<------------------------------------------------------------------------------------------>
return [];




return [];



